Skip to content

Conversation

evias
Copy link
Contributor

@evias evias commented Nov 21, 2019

Changed

  • Refactor of Transaction.createTransactionHash for clarity and use protocol nearest transaction creation flow as seen in TransactionExtensions
  • MerkleHashBuilder now creates hasher from instance parameters
  • Fix usage of SHA3 for transaction hashes in Transaction.createTransactionHash and `AggregateTransaction.calculateInnerTransactionHash

@coveralls
Copy link

coveralls commented Nov 21, 2019

Pull Request Test Coverage Report for Build 841

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 838: 0.0%
Covered Lines: 10
Relevant Lines: 10

💛 - Coveralls

* @param {NetworkType} networkType Catapult network identifier
* @returns {string} Returns Transaction Payload hash
*/
public static createTransactionHash(transactionPayload: string, generationHashBuffer: number[], networkType: NetworkType): string {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again, don't think we need networkType anymore.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one i would rather keep as it affects CosignatureTransaction down the road ; lets wait for more clarity on keccak for removing it ?

@rg911 rg911 merged commit 181d926 into symbol:master Nov 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants